<?php
declare (strict_types = 1);

namespace app\api\model\v1;

use think\Model;

/**
 * @mixin \think\Model
 * 问卷调查表
 */
class Examine extends AppModel
{
    //
    public function admin(){
        return $this->belongsTo(Admins::class,'user_id')->field('id,username');
    }

    public function unit(){
        return $this->belongsTo(GatherCompany::class,'unit_id')->field('id,gather_company_title as title');
    }
}
